//
//  DateAndTimeSelectionViewController.h
//  MemoryTasks
//
//  Created by Philippe Bouamriou on 17/05/10.
//  Copyright 2010 Philippe Bouamriou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CustomNavigationController.h"

@protocol DateAndTimeSelectionDelegate

- (void)dateSelectionFromDateAndTimeController:(NSDate *)theDate withIdentifier:(NSUInteger)identifier;

@end



@interface DateAndTimeSelectionViewController : UIViewController
< UITableViewDataSource, UITableViewDelegate, CustomNavigationControllerDelegate > {
   NSDate *date;
   NSDate *startDate;
   NSDate *endDate;
   UIDatePicker *_datePicker;
   UIDatePicker *_timePicker;
   UITableView *_tableView;
   NSUInteger rowSelected;
   id<DateAndTimeSelectionDelegate> delegate;
   NSUInteger identifier;
}

@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSDate *startDate;
@property (nonatomic, strong) NSDate *endDate;
@property (nonatomic, strong) id<DateAndTimeSelectionDelegate> delegate;
@property (nonatomic) NSUInteger identifier;

@end
